package com.woniuxy.ams.service.impl;

import com.woniuxy.ams.dao.AuditDetailDao;
import com.woniuxy.ams.entity.AuditDetail;
import com.woniuxy.ams.service.AuditDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AuditDetailServiceImpl implements AuditDetailService {
    AuditDetailDao auditDetailDao;
    @Autowired(required = false)
    public void setAuditDetailDao(AuditDetailDao auditDetailDao) {
        this.auditDetailDao = auditDetailDao;
    }

    @Override
    public int insert(AuditDetail auditDetail) {
        return auditDetailDao.insert(auditDetail);
    }

    @Override
    public int delete(AuditDetail auditDetail) {
        return auditDetailDao.delete(auditDetail);
    }

    @Override
    public List<AuditDetail> findAll() {
        return auditDetailDao.findAll();
    }

    @Override
    public List<AuditDetail> findConditional(AuditDetail auditDetail) {
        return auditDetailDao.findConditional(auditDetail);
    }

    @Override
    public AuditDetail findById(int id) {
        return auditDetailDao.findById(id);
    }

    @Override
    public int update(AuditDetail auditDetail) {
        return auditDetailDao.update(auditDetail);
    }

    /**
     * 按条件修改
     */
    @Override
    public int conditionalModification(AuditDetail auditDetail) {
        return auditDetailDao.conditionalModification(auditDetail);
    }
}
